package com.bw.system.controller;

import com.bw.common.domain.User;
import com.bw.common.result.Result;
import com.bw.system.service.SystemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("system")
@CrossOrigin
public class SystemController {

    @Autowired
    private SystemService systemService;

    @GetMapping("/selectUserInfo/{username}")
    public Result<User> selectUserInfo(@PathVariable String username){
        User user = systemService.selectUserInfo(username);
        return Result.success(user);
    }

}
